
let devConfigData = {
    pcDomain: 'http://192.168.0.82:8890',
    mobileDomain: 'http://192.168.0.82:10521'
}
  
let testConfigData = {
    pcDomain: 'http://testplatform.chinavisionary.com',
    mobileDomain: 'http://svn.chinavisionary.com'
}
  
let proConfigData = {
    pcDomain: 'https://oa.chinavisionary.com',
    mobileDomain: 'https://apply-center.chinavisionary.com'
}

let loginParamProd = {
    organizeCode: 'DEPART_20180715204201433352',
    agentId: 1000012
}

let loginParamTest = {
    organizeCode: 'DEPART_20180715204201433352',
    agentId: 1000003
}

let currentHost = location.protocol + '//' + location.host
  
let configData = {}
let loginData = {}
  
// if (currentHost == 'https://apply-center.chinavisionary.com') {
//     configData = proConfigData
// } else if (currentHost == 'http://svn.chinavisionary.com') {
//     configData = testConfigData
// } else {
//     configData = devConfigData
// }
console.log(process.env.NODE_ENV)

if (process.env.NODE_ENV == 'development') {
    configData = devConfigData
} else if (process.env.NODE_ENV == 'beta') {
    loginData = loginParamTest
    configData = testConfigData
} else if (process.env.NODE_ENV == 'production') {
    loginData = loginParamProd
    configData = proConfigData
}
  
export default {configData,loginData}